<?php


namespace app\admin\controller;


use think\App;
use think\Controller;

class Base extends Controller
{
    public function __construct(App $app = null)
    {
        //验证是否登录，如果没有就去登录
        if (null==session("uid"))
            $this->redirect("/admin/login");

        parent::__construct($app);

        $WebHeadData = array();
        $WebHeadData['uname']=session("uname");
        $this->assign("HeadData",$WebHeadData);
    }
}